package controller

// 处理时间推送  webSocket
import (
	"fabric-go-sdk/ws"
	"github.com/gin-gonic/gin"
)

// v2 区块事件推送
func BlockEvent(c *gin.Context, hub *ws.Hub) {
	// 升级为websocket连接
	ws.ServeWs(hub, c.Writer, c.Request)

}

// v2 交易事件推送
func TxEvent(c *gin.Context, hub *ws.Hub) {
	ws.ServeWs(hub, c.Writer, c.Request)

}
